package com.bingxue.edu.management.education.model.resp;

import com.bingxue.edu.management.education.model.entity.ClassInfo;
import com.mybatisflex.annotation.RelationManyToOne;
import com.mybatisflex.annotation.TableRef;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = true)
@Schema(description = "班级返回信息")
@TableRef(ClassInfo.class)
public class ClassNameInfoResp extends ClassInfo {

    @Schema(description = "主讲老师名称")
    @RelationManyToOne(
            selfField = "leadTeacherId",
            targetTable = "base_employee",
            targetField = "id",
            valueField = "name"
    )
    private String leadTeacherName;
}
